package com.example.mysongplayer;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;

public class MainActivity extends AppCompatActivity {
    ImageButton mButton = null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mButton = (ImageButton)findViewById(R.id.main_circle_button);
        mButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //下面是自己想要实现的功能
                //此处实现跳转
                Intent intent = new Intent();
                //Music_List为跳转后到达的页面
                intent.setClass(MainActivity.this, Music_List.class);
                startActivity(intent);
            }
        });
    }
}